{include file="download_header.tpl.php"}
</div>
<div style="height:100px; background:#000;">

<div style="width:971px; margin:0 auto; color:#ffffff; font-size:13px;">

<div style="text-align:center; padding-top:10px; font-size:16px; font-weight:bold; font-family:Arial"> <img src="{$SITE_URL|@urldecode}templates/images/small_lock.png" alt="" style="vertical-align:middle" />&nbsp;Unlock this page to continue! 
<br />
<p class="link_ins">You can unlock this page and access the link by completing an offer below {if $PREMIUM_LINK_UNLOCK eq "1"}or <a href="#" style="color:#FF0;" id="prem_download2">login</a> to your premium account.{/if}</p>


<div id="_ostatus" style="color:#ffffff; padding-top:10px; font-size:14px; font-weight:normal">&nbsp;</div>

</div>


</div>

</div>


<div id="linklocker_wrapper">


<div id="contents" style="margin-top:100px;">

<!--Left Contents-->
<div id="leftPanel">




<!--File Download Box-->
<div class="file_download_box">
<div class="top">&nbsp;</div>
<div class="mid">

<div class="clear">

  
<div id="offersSection2" style="height:250px" >
<iframe src="{$SITE_URL}link_offers.php?f={$fileCode}&r={$randomHash}" style="border:0; width:570px; height:250px; overflow:hidden;  " scrolling="no"></iframe>

<div id="dform" style="display:none; width:90%; text-align:center">
<form action="{$SITE_URL}file/{$fileCode}" method="post">
<input type="hidden" id="durl" name="durl" value="{$SITE_URL}file/{$fileCode}" />
<input type="hidden" name="token" id="tokenId" value="" />
</form>
</div>

</div>

{if $PREMIUM_LINK_UNLOCK eq "1"}
<script type="text/javascript">
{literal}
$(document).ready(function(){

$('#cboxClose').remove();
$('#prem_download, #prem_download2').colorbox({inline:true, href:"#premium_download", width: 600, height:400, escKey: false, overlayClose:false});
	
});
{/literal}
</script>
{/if}
    
    

</div>



</div>
<div class="bottom">
 
 <!--<div class="reportBtn"><a href="{$SITE_URL}report.php?file={$fileCode}" target="_blank">Report Link</a></div>-->

</div>
</div>
<!--End File Download Box-->

{if $PREMIUM_LINK_UNLOCK eq "1"}
<!--Premium heading-->
<div class="premiumHeading">Buy Premium | <a href="#" id="prem_download">Premium Login</a></div>
<div class="premiumDesc">Register now as a Premium User and experience direct downloads with no wait time, advertisements, or surveys! Accounts take less than a minute to setup and are easy to buy through PayPal!</div>
<!--End Premium Heading-->



<!--Packages-->
<div style="clear:both; width:673px; margin:10px 0">



{if $packages ne ""}
{foreach item=package from=$packages}

<!--Pack-->
<div class="package_box">
<div class="pack_name"><p>{$package.name|@ucfirst}</p></div>

<div class="mid" style="text-align:center">

<div class="price"><p><span class="dollars">${$package.dollars}</span><span class="cents">.{$package.cents}</span></p></div>



</div>
<div class="bottom">


<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="{$package.btn_id}" />
<input type='hidden' name='rm' value='2' />
<input type='hidden' name='no_note' value='1' />
<input type='hidden' name='upload' value='1' />
 <input type='hidden' name='invoice' value='{$fileCode}-{$stringTime}' />
<input type='hidden' name='notify_url' value='{$SITE_URL}setup_premium.php' />
<input type='hidden' name='return' value='{$SITE_URL}premium.php' />
<input type='hidden' name='cancel_return' value='{$SITE_URL}download.php' />
<input type="image" src="{$SITE_URL}templates/images/buy_now.png"  style="border:0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" />
</form>


</div>
</div>
<!--End Pack-->


<!--End Package-->
{/foreach}
{/if}







</div>
<!--End Packages-->
{/if}


</div>
<!--End Left Contents-->




<!--Right Side Bar-->
<div id="rightPanel">

{if $fcomments ne ""}


<!--Stat-->

<div class="rg_heading" style="background:none; border:0; padding:0; margin:0">Link Testimonials</div>




{foreach item=fcomment from=$fcomments}

<div class="feedback1">
<div class="top">&nbsp;</div>
<div class="mid"><p>{$fcomment.comment}</p></div>
<div class="bottom"><p>{$fcomment.name}</p></div>

</div>
{/foreach}





{/if}
</div>
<!--End Right Side Bar-->




</div>
<!--End Contents-->












<!--Premium Login-->
<div style="display:none">
<div id="premium_download">

<div class="offerp_box">
<div class="top"><p style="float:left" id="pfti">&raquo; {if $premium_forgot eq 1}Premium Account Password Reset{else}Premium Account Login{/if}</p><p style="float:right; padding-right:20px;"><a href="javascript:void(0)" onclick="$.colorbox.close()" style="color:#ffffff;">close</a></p></div>

<div class="mid">
<div id="premium_login_form"  {if $premium_forgot eq 1} style="display:none"{/if}>
<div class="offers_heading">Login to your premium account and download the file right away</div>
<form action="{$SITE_URL}file/{$fileCode}" method="post">
<input type="hidden" name="premium_login" value="login" />
<br />
{if $login_error ne ""}
<div class="inline_reg_error"><center><img src="{$SITE_URL}templates/images/cross.gif" style="vertical-align:top" alt="" /> {$login_error}</center></div>
{/if}
{if $success_msg ne ""}
<div class="inline_reg_success"><center><img src="{$SITE_URL}templates/images/tick.gif" style="vertical-align:top" alt="" /> {$success_msg}</center></div>
{/if}
<table cellspacing="10" style="width:450px; margin:5px auto;">
<tr><td style="text-align:right">Email Address:</td><td><input type="text" name="email_address" maxlength="55"  class="prem_txt_field" /></td></tr>
<tr><td style="text-align:right">Password:</td><td><input type="password" name="password" class="prem_txt_field" /></td></tr>
<tr><td colspan="2" style="text-align:center"><input type="submit" name="login_btn1" value="Login" onclick="$('#prem_download').colorbox.close();" /> | <a href="#" id="forgot_p">forgot password?</a></td></tr>

</table>
</form>


</div>

<div id="premium_forgot_form" {if $premium_forgot ne 1} style="display:none"{/if}>
<div class="offers_heading">Enter your premium account email address you want to reset password for.</div>
<form action="{$SITE_URL}file/{$fileCode}" method="post">
<input type="hidden" name="premium_forgot" value="forgot" />

<br />
{if $login_error ne ""}
<div class="inline_reg_error"><center><img src="{$SITE_URL}templates/images/cross.gif" style="vertical-align:top" alt="" /> {$login_error}</center></div>
{/if}
<table cellspacing="10" style="width:450px; margin:5px auto;">
<tr><td style="text-align:right">Email Address:</td><td><input type="text" name="email" maxlength="55"  class="prem_txt_field" /></td></tr>
<tr><td colspan="2" style="text-align:center"><input type="submit" name="forgot_btn1" value="Send Password" onclick="$('#prem_download').colorbox.close();" /> | <a href="#" id="backLogin">Back</a></td></tr>
</table>
</form>


</div>






</div>

<script type="text/javascript">
{if $PREMIUM_LINK_UNLOCK eq "1"}
{literal}

$(document).ready(function(){
	
	$("#forgot_p").click(function(e){
	
	e.preventDefault();
	$("#premium_login_form").hide('fast');	
	$("#premium_forgot_form").show('fast');	
	$("#pfti").html("&raquo; Premium Account Password Rest");
		
	});
	
	$("#backLogin").click(function(e){
	
	e.preventDefault();
	$("#premium_forgot_form").hide('fast');	
	$("#premium_login_form").show('fast');	
	$("#pfti").html("&raquo; Premium Account Login");	
	});	
	

	
});

{/literal}
{/if}
	
	//tooltips
{literal}	$('.offerDiv').tipsy({gravity: 's'}); {/literal}

</script>




<div class="bottom">&nbsp;</div>



</div>



</div>
</div>
<!--End Premium Login-->






{if $login_error ne "" || $success_msg ne ""}
<script type="text/javascript">
{literal}
$.colorbox({inline:true, href:"#premium_download", width: 600, height:400, escKey: false, overlayClose:false});
{/literal}
</script>
{/if}









{include file="download_footer.tpl.php"}
